﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000C1D RID: 3101
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MuseumRandomEventQueryScRsp : IMessage<MuseumRandomEventQueryScRsp>, IMessage, IEquatable<MuseumRandomEventQueryScRsp>, IDeepCloneable<MuseumRandomEventQueryScRsp>, IBufferMessage
	{
		// Token: 0x1700271B RID: 10011
		// (get) Token: 0x06008AB0 RID: 35504 RVA: 0x0017130D File Offset: 0x0016F50D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MuseumRandomEventQueryScRsp> Parser
		{
			get
			{
				return MuseumRandomEventQueryScRsp._parser;
			}
		}

		// Token: 0x1700271C RID: 10012
		// (get) Token: 0x06008AB1 RID: 35505 RVA: 0x00171314 File Offset: 0x0016F514
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MuseumRandomEventQueryScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700271D RID: 10013
		// (get) Token: 0x06008AB2 RID: 35506 RVA: 0x00171326 File Offset: 0x0016F526
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MuseumRandomEventQueryScRsp.Descriptor;
			}
		}

		// Token: 0x06008AB3 RID: 35507 RVA: 0x0017132D File Offset: 0x0016F52D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MuseumRandomEventQueryScRsp()
		{
		}

		// Token: 0x06008AB4 RID: 35508 RVA: 0x00171338 File Offset: 0x0016F538
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MuseumRandomEventQueryScRsp(MuseumRandomEventQueryScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.info_ = ((other.info_ != null) ? other.info_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06008AB5 RID: 35509 RVA: 0x00171384 File Offset: 0x0016F584
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MuseumRandomEventQueryScRsp Clone()
		{
			return new MuseumRandomEventQueryScRsp(this);
		}

		// Token: 0x1700271E RID: 10014
		// (get) Token: 0x06008AB6 RID: 35510 RVA: 0x0017138C File Offset: 0x0016F58C
		// (set) Token: 0x06008AB7 RID: 35511 RVA: 0x00171394 File Offset: 0x0016F594
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x1700271F RID: 10015
		// (get) Token: 0x06008AB8 RID: 35512 RVA: 0x0017139D File Offset: 0x0016F59D
		// (set) Token: 0x06008AB9 RID: 35513 RVA: 0x001713A5 File Offset: 0x0016F5A5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BKLOLLFKKEL Info
		{
			get
			{
				return this.info_;
			}
			set
			{
				this.info_ = value;
			}
		}

		// Token: 0x06008ABA RID: 35514 RVA: 0x001713AE File Offset: 0x0016F5AE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MuseumRandomEventQueryScRsp);
		}

		// Token: 0x06008ABB RID: 35515 RVA: 0x001713BC File Offset: 0x0016F5BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MuseumRandomEventQueryScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.Info, other.Info) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06008ABC RID: 35516 RVA: 0x0017140C File Offset: 0x0016F60C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.info_ != null)
			{
				num ^= this.Info.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008ABD RID: 35517 RVA: 0x00171461 File Offset: 0x0016F661
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008ABE RID: 35518 RVA: 0x00171469 File Offset: 0x0016F669
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008ABF RID: 35519 RVA: 0x00171474 File Offset: 0x0016F674
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			if (this.info_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.Info);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008AC0 RID: 35520 RVA: 0x001714D0 File Offset: 0x0016F6D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.info_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Info);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008AC1 RID: 35521 RVA: 0x00171528 File Offset: 0x0016F728
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MuseumRandomEventQueryScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.info_ != null)
			{
				if (this.info_ == null)
				{
					this.Info = new BKLOLLFKKEL();
				}
				this.Info.MergeFrom(other.Info);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008AC2 RID: 35522 RVA: 0x00171590 File Offset: 0x0016F790
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008AC3 RID: 35523 RVA: 0x0017159C File Offset: 0x0016F79C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 114U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.info_ == null)
						{
							this.Info = new BKLOLLFKKEL();
						}
						input.ReadMessage(this.Info);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003505 RID: 13573
		private static readonly MessageParser<MuseumRandomEventQueryScRsp> _parser = new MessageParser<MuseumRandomEventQueryScRsp>(() => new MuseumRandomEventQueryScRsp());

		// Token: 0x04003506 RID: 13574
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003507 RID: 13575
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04003508 RID: 13576
		private uint retcode_;

		// Token: 0x04003509 RID: 13577
		public const int InfoFieldNumber = 14;

		// Token: 0x0400350A RID: 13578
		private BKLOLLFKKEL info_;
	}
}
